<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no, email=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
</head>
<body>

<script src="js/ajax3.js"></script>
<script>
    /*
    * {
     name:"abc",
     age:20,
     a:"b"
     },

     name=abc&age=20&a=b

    * */
   var obj = {
       name:"abc",
       age:20,
       a:"b"
   }

    var arr = [];
    for(var i in obj){
        arr.push(i+"="+obj[i]);
    }
    console.log(arr.join("&"))
</script>

</body>
</html>